#!/usr/bin/env node 
const count=0;
var timer1=setInterval(loop,500);
function loop(){
  console.log("happy birthday");
}
setTimeout(function(){
  var timer2=setInterval(loop2,500);
function loop2(){
  console.log('yang yang');
  count++;
  if(count==5){
    clearInterval(timer2);
  }
}

  clearTimeout(timer1);


},5000);

